import * as path from 'path';
import * as serverConfig from '../lib/config/config';

/**
 * 处理web服务器中将url路径转换为本地静态文件存放的相对路径;
 * 
 * @module util/get-path
 */
export function originalUrlToHtmlView(originalUrl:string){
    let arr = originalUrl.split("/");
    return path.normalize(arr[2]+"/"+arr[3]);
}